import {
	createRouter,
	createWebHistory
} from "vue-router";
import LogIn from '../components/Login.vue';
import Index from '../components/Index.vue';
import FeedbackList from '../components/FeedbackList.vue';
import FeedbackInfo from "../components/FeedbackInfo.vue";
import FeedbackAssign from "../components/FeedbackAssign.vue";
import ConfirmAqi from "../components/ConfirmAqi.vue";
import AqiDetail from "../components/AqiDetail.vue";
import ProvinceGroup from "../components/ProvinceGroup.vue";
import AqiAirQuality from "../components/AqiAirQuality.vue";
import AqiLevel from "../components/AqiLevel.vue";
import OtherStatistics from "../components/OtherStatistics.vue";
import StatisticMap from "../components/StatisticMap.vue";
const routes = [{
	path: '/',
	name: '主页',
	component: LogIn
}, {
	path: '/login',
	name: "登录",
	component: LogIn
}, {
	path: "/index",
	name: "后端首页",
	component: Index,
	children: [{
			path: "/feedbackList",
			name: "公共监督数据列表",
			component: FeedbackList
		}, {
			path: "/feedbackInfo",
			name: "公共监督数据详情",
			component: FeedbackInfo
		}, {
			path: "/feedbackAssign",
			name: "指派网格员",
			component: FeedbackAssign
		}, {
			path: "/confirmAqi",
			name: "确认aqi数据列表",
			component: ConfirmAqi
		}, {
			path: "/aqiDetail",
			name: "aqi数据详情",
			component: AqiDetail
		}, {
			path: "/provinceGroup",
			name: "省份组分项检查统计",
			component: ProvinceGroup
		}, {
			path: "/aqiAirQuality",
			name: "Aqi空气质量指数超标趋势",
			component: AqiAirQuality
		}, {
			path: "/aqiLevel",
			name: "Aqi空气质量指数级别分布",
			component: AqiLevel
		}, {
			path: "/otherStatistics",
			name: "其他数据统计",
			component: OtherStatistics
		},
		{
			path: "/statisticMap",
			name: "统计大屏幕",
			component: StatisticMap
		},
	]
}]
const router = createRouter({
	history: createWebHistory(),
	routes
})
export default router;